package Model
{
	import flash.events.Event;
	import flash.events.EventDispatcher;

	public class SimpleShading extends EventDispatcher
	{
		protected var _shadingFactor:Number
		protected var _correctionFactor:Number;
		protected var _direction:Number;
		
		private var _propertyChangedEvent:Event = new Event("changedProperty");
		
		public function SimpleShading(direction:Number)
		{
			this._shadingFactor = 1;
			this._correctionFactor = 1;
			this._direction = direction;
		}

		public function get shadingFactor():Number
		{
			return _shadingFactor;
		}

		public function set shadingFactor(value:Number):void
		{
			_shadingFactor = value;
			dispatchEvent(this._propertyChangedEvent);
		}

		public function get correctionFactor():Number
		{
			return _correctionFactor;
		}

		public function set correctionFactor(value:Number):void
		{
			_correctionFactor = value;
		}

		public function get direction():Number
		{
			return _direction;
		}

		public function set direction(value:Number):void
		{
			_direction = value;
		}


	}
}